<?php

namespace App\Library\Requests\Logistic;

use App\Library\Requests\Base\BaseDTORequest;
use App\Library\Rules\ExpressesNoRule;

class LogisticSendRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'objectType' => 'required|integer|in:0,1',
            'objectId' => 'required|integer|min:1',
            'type' => 'required|integer|between:0, 3',
            'expressNo' => ['required', 'string', 'max:255', new ExpressesNoRule()]
        ];
    }
}
